import request from '@/utils/request'

// 查询钥匙取用记录列表
export function listKeyrecord(query) {
  return request({
    url: '/system/keyrecord/list',
    method: 'get',
    params: query
  })
}

// 查询钥匙取用记录详细
export function getKeyrecord(id) {
  return request({
    url: '/system/keyrecord/' + id,
    method: 'get'
  })
}

// 新增钥匙取用记录
export function addKeyrecord(data) {
  return request({
    url: '/system/keyrecord',
    method: 'post',
    data: data
  })
}

// 修改钥匙取用记录
export function updateKeyrecord(data) {
  return request({
    url: '/system/keyrecord',
    method: 'put',
    data: data
  })
}

// 删除钥匙取用记录
export function delKeyrecord(id) {
  return request({
    url: '/system/keyrecord/' + id,
    method: 'delete'
  })
}
